package com.tupu.mapper.ocs;


import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.tupu.entity.dto.T0007PointDTO;
import com.tupu.entity.ocs.T0007Point;
import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;
import java.util.List;
import java.util.Map;

@DS("oracle")
public interface T0007PointMapper extends BaseMapper<T0007Point> {

    List<T0007PointDTO> findT0007Point(@Param("startTime") Long startTime, @Param("endTime") Long endTime);

    List<String> getDeviceTypeList();

    @MapKey("c1211DevId")
    Map<Integer, T0007PointDTO> getDeviceListByIds(@Param("ids") List<Integer> ids);

    @MapKey("c1211DevId")
    Map<Integer, T0007PointDTO> getDeviceListByParams(@Param("station") String station, @Param("deviceType") String deviceType,@Param("deviceName") String deviceName);

    List<Integer> selectStationNo();

    List<String> selectPointNameByStationNo(@Param("stationNo")Integer stationNo);
}
